﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Dunk: Animal, Ieat, Iswimming
    {
        private string name;
        public Dunk(string name) : base(name)
        {
            this.name = name;
        }

        public void eat()
        {
            Console.WriteLine("我是{0},我能吃", this.name);
        }

        public void swimming()
        {
            Console.WriteLine("我是{0},我能游泳", this.name);
        }
    }
}
